package main

import (
	"context"
	"fmt"
	pd2 "go-kit/go-client/pd"
	"google.golang.org/grpc"
	"log"
)

func main() {

	cnon, err := grpc.Dial(":8080", grpc.WithInsecure())

	if err != nil {
		log.Fatal(err)
	}

	defer cnon.Close()

	prodClient := pd2.NewGetUserInfoClient(cnon)

	res, err := prodClient.UserList(context.Background(), &pd2.Request{UserId: 24})

	if err != nil {
		log.Fatal(err)

	}

	fmt.Println(res.ResultList)

}
